import request from '@/utils/request'
// 获取分类请求
export const getCategoryAPI = () => {
  return request.get('/my/cate/list')
}
// 添加分类请求
export const addCategoryAPI = data => {
  return request.post('/my/cate/add', data)
}
// 删除分类请求
export const delCategoryAPI = id => {
  return request.delete('/my/cate/del', { params: { id } })
}
// 更新分类请求
export const updateCategoryAPI = obj => {
  return request.put('/my/cate/info', obj)
}
